import router from './index'

// 全局守卫
router.beforeEach((to, from, next) => {
  // to, from => $route
  let name = to.name
  // if (name === 'theater') {
  //   alert('你没有权限')
  // } else {
  //   next()
  // }
  next()
})

router.afterEach((to, from) => {
  // console.log('will leave...')
})